
(function (doc, win, undefined) {
    var docEl = doc.documentElement,
    resizeEvt = 'orientationchange' in win? 'orientationchange' : 'resize',
    recalc = function () {
    var clientWidth = docEl.clientWidth;
    if (clientWidth === undefined) return;
    docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
    };
    
    if (doc.addEventListener === undefined) return;
    win.addEventListener(resizeEvt, recalc, false);
    doc.addEventListener('DOMContentLoaded', recalc, false)
    })(document, window);


    $(function(){
        let clientWidth = document.documentElement.clientWidth;
        let childs=$('.right_slide').children('div')
        if(clientWidth<=1000){
            $('.right_slide')
        .append(childs.eq(4))
        .append(childs.eq(5))
        .append(childs.eq(0))
        .append(childs.eq(1))
        .append(childs.eq(6))
        .append(childs.eq(2))
        .append(childs.eq(7))
        .append(childs.eq(3))

        $('.right_slide_list8').children('div').append($('.right_slide_list8').find('.triangle_right').eq(0))
        }

    })
